#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->pushButton->setStyleSheet("QPushButton {color : red;}"); // 红
    ui->pushButton_2->setStyleSheet("QPushButton {color : #ffaa00;}"); // 橙

    // this->setStyleSheet("QPushButton {color : blue;}"); // 蓝
    // 发生冲突，局部优先


}

Widget::~Widget()
{
    delete ui;
}

